<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib uri='http://java.sun.com/jsp/jstl/core' prefix='c'%>
<%@ page import="com.bbs.po.forum,java.util.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>论坛主页</title>
</head>
<body>
  <%@ include file="/common/header.jsp" %>
  <table width="90%" border="1" align="center">
      <tr align="left">
          <td colspan="4">
             <table width="90%" border="0" align="center">
                <tr>
                   <td>
                                                          欢迎访问论坛：
                      <%=session.getAttribute("username") %>
                   </td>
                   <td align="right">
                      <a href="logooff">注销登陆&nbsp;</a>
                      
                   </td>
                </tr>
             </table>
          </td>
      </tr>
      <tr align="center" bgcolor="#009999">
        <td colspan="4">
           Aslan BBS
        </td>
      </tr>
      <tr align="center">
         <td width="19%">
                               论坛
         </td>
         <td width="10%">
                               主题数
         </td>
         <td width="50%">
                               论坛最新帖子
         </td>
         <td width="12%">
                                版主
         </td>
      </tr>
  
  <c:forEach items="${forums }" var="forum1">
      <tr align="center">
         <td width="19%">
            &nbsp;
            <a href="topiclist?id=${forum1.id }&pagenum=1"> ${forum1.forumname}</a>
         </td>
         <td>
            &nbsp;
            ${forum1.topicNum }
         </td>
         <td>
         &nbsp;
            <a href="responselist?topicid=${forum1.topics.id }&pagenum=1">${forum1.topics.title }</a>
         </td>
         <td>
         &nbsp;
           ${forum1.manager }
         </td>
      </tr>
  </c:forEach>
  </table>
  <%@ include file="/common/footer.jsp" %>
</body>
</html>